package com.t9;

/**
 * Created by xuyiwei on 2018/7/20.
 */
abstract class Instrument {
    private int i;

    public abstract void play(Note n);

    public String what() {
        return "Instrument";
    }

    public abstract void adjust();
}

public class E2 {

    public static void main(String[] args) {
        Instrument instrument = new Instrument() {
            @Override
            public void play(Note n) {
                System.out.println("1");
            }

            @Override
            public void adjust() {
                System.out.println("1");
            }
        };
    }

}
